package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.AccountsSealsImageParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.AccountsSealsImageParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.AccountsSealsImageResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/28 11:29
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class AccountsSealsImageRequest extends AbstractESignRequest implements
    ESignRequest<AccountsSealsImageResponse> {

  private AccountsSealsImageParamPath accountsSealsImageParamPath;
  private AccountsSealsImageParamBody accountsSealsImageParamBody;

  public AccountsSealsImageRequest(
      AccountsSealsImageParamPath accountsSealsImageParamPath,
      AccountsSealsImageParamBody accountsSealsImageParamBody) {
    this.accountsSealsImageParamPath = accountsSealsImageParamPath;
    this.accountsSealsImageParamBody = accountsSealsImageParamBody;
    this.setParamPath(accountsSealsImageParamPath);
    this.setParamBody(accountsSealsImageParamBody);
  }

  @Override
  public String getUrl() {
    return "/accounts/{accountId}/seals/image";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }


  @Override
  public Class<AccountsSealsImageResponse> getResponseClass() {
    return AccountsSealsImageResponse.class;
  }

}
